package com.example.xhq.viewxiangying;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;

/**
 * Created by xhq on 2017/5/27.
 */

public class XHQView extends View {

    public XHQView(Context context) {
        super(context);
    }


    public XHQView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }


//    @Override
    public boolean dispatchTouchEvent(MotionEvent event) {

        boolean b = super.dispatchTouchEvent(event);
        LogUtil.print( "dispatchTouchEvent返回值:" + b,event);
        return b;

    }
//
//
//    @Override
    public boolean onTouchEvent(MotionEvent event) {

        boolean b = super.onTouchEvent(event);
        LogUtil.print( "onTouchEvent返回值:" + b,event);
       return b;
    }
}
